﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DispatchAssist.BusinessLogical.Model
{
    public class SeatMonitor
    {

        /// <summary>
        /// SeatMonitor 构造函数
        /// </summary>
        public SeatMonitor()
        { }


        /// <summary>
        /// SeatMonitor OR映射构造函数
        /// </summary>
        public SeatMonitor(System.Data.IDataReader dr)
        {
            this.SeatMonitorID = (Guid)dr["SeatMonitorID"];
            this.SeatID = (Guid)dr["SeatID"];
            this.TailNo = Convert.ToString(dr["TailNo"]);
            this.LastModifyTime = Convert.ToDateTime(dr["LastModifyTime"]);
            this.DeleteFlag = Convert.ToBoolean(dr["DeleteFlag"]);
        }


        /// <summary>
        /// 
        /// </summary>
        public Guid SeatMonitorID { get; set; }

        /// <summary>
        /// 监控席位
        /// </summary>
        public Guid SeatID { get; set; }


        /// <summary>
        /// 飞机尾号
        /// </summary>
        public string TailNo { get; set; }

        /// <summary>
        /// 最后修改时间
        /// </summary>
        public DateTime LastModifyTime { get; set; }

        /// <summary>
        /// 逻辑删除标记
        /// </summary>
        public bool DeleteFlag { get; set; }

        public override string ToString()
        {
            return string.Format("[SeatID：{0},飞机尾号:{1}]", this.SeatID, this.TailNo);
        }

    }
}
